/*
 * TypeCheck.c
 *
 *  Created on: 2011-7-8
 *      Author: gexiao
 */

/*
 * instanceof,checkcast,etc.
 */
#include "../Dalvik.h"

#include <stdlib.h>

/*
 * Number of entries in instanceof cache.  MUST be a power of 2.
 */
#define INSTANCEOF_CACHE_SIZE   1024

/*
 * Allocate cache.
 */bool dvmInstanceofStartup(void) {
	gDvm.instanceofCache = dvmAllocAtomicCache(INSTANCEOF_CACHE_SIZE);
	if (gDvm.instanceofCache == NULL)
		return false;
	return true;
}

/*
 *
 */bool dvmCanPutArrayElement(ClassObject* objectClass, ClassObject* arrayClass) {

}
